<?php

namespace catchAdmin\drug\request;

use catcher\base\CatchRequest;

class MedicationReminderRequest extends CatchRequest
{

    protected function rules(): array
    {
        // TODO: Implement rules() method.
        return [
            'reminderList|参数' => "require|array",
            'reminderList.0.drug_code|药品编号' => 'require',
            'reminderList.0.drug_name|药品名称' => 'require',
            'reminderList.0.take_time|服用时间' => 'require|array',
            'reminderList.0.first_reminder_time|首次提醒时间' => 'require',
//            'reminderList.0.cycle|用药周期' => 'require',
            'reminderList.0.cycle_unit|用药周期单位' => 'require',
            'reminderList.0.frequency|提醒频次' => 'require',
            'reminderList.0.usage|用法用量' => 'require',
            'reminderList.0.taboo|注意事项及禁忌' => 'require',
            'reminderList.0.patientId|患者id' => 'require',
            'reminderList.0.patientName|患者姓名' => 'require'
        ];
    }

    protected function message(): array
    {
        return [];
    }
}